package com.zzw.springcloud.service;

import com.zzw.springcloud.bean.Member;
import com.zzw.springcloud.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Component
@FeignClient(value = "MEMBER-SERVICE-PROVIDER")
public interface MemberFeignService {

    @GetMapping("/member/provider/selectById/{id}")
    public Result selectById(@PathVariable("id") Integer id);

    @PostMapping("/member/provider/insert")
    public Result insert(@RequestBody Member member);
}
